package chap3;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Race100 {
    public static void main(String[] args) {
        //赛跑
        Scanner in=new Scanner(System.in);
        System.out.print("请输入成绩：");
        double s=in.nextDouble();
        System.out.print("性别：");
        String sex=in.next();
        //sex怎么比较？ sex.equals("xxx")
        if(s<=10){
            System.out.println("进入决赛");
            if(sex.equals("男")){
                System.out.println("进入了男子组");
            }else{
                System.out.println("进入了女子组");
            }
        }else{
            System.out.println("对不起，您被淘汰了");
        }
    }
}
